<template>
<div class="my-backlog">
    <p><span>|</span>我的待办</p>
    <div class="backlog-all">
        <div class="backlog-box">
            <span id="time">今日</span>
            <span id="state">待审批</span>
                <span id="state1">
                    <!-- {{ number.today }} -->
                    12
                </span>
            <span id="name">
            <el-icon :size="16" id="icon"><Stamp/></el-icon>
            待审批
        </span>
        </div>
        <div class="backlog-box">
            <span id="time">我的项目</span>
            <span id="state">管理总数</span>
                <span id="state1">
                    {{ number }}
                </span>
            <span id="name">
                <el-icon :size="16" id="icon"><Files/></el-icon>
                项目数
            </span>
        </div>
        <div class="backlog-box">
            <span id="time">动态更新</span>
            <span id="state">季度更新</span>
                <span id="state1">
                    <!-- {{ number.updates }} -->
                    10
                </span>
            <span id="name">
                <el-icon :size="16" id="icon"><DataAnalysis/></el-icon>
                待更新
            </span>
        </div>
    </div>
    </div>

</template>

<script  lang="ts" setup>
import { ref ,onMounted } from 'vue'
import request from '@/utils/http'
const number = ref(0)
const getNumber = async () => {
try {
    const res = await request({
        url: '/invest/projectInfo',
        })
        console.log(res)
    number.value = res.data.total
} catch (error) {
    console.error('获取数据失败:', error)
    }
}
onMounted(() => getNumber())

</script>

<style scoped>
.backlog-all{
    display: flex;
    width: 790px;
    justify-content: space-between;
}
.backlog-box{
    width: 250px;
    height: 140px;
    background-color: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    display:flex;
    flex-direction: column;
    position: relative;
}
#time{
    font-size: 16px;
    color:#797979;
    text-align: left;
    padding-left: 10px;
    padding-top: 10px;
}
#state{
    font-size: 28px;
    color: #1A70AD;
    position: absolute;
    letter-spacing: 3px;
    opacity: 0.5;
    font-style:italic;
    left: 50%;
    top:50%;
    transform: translate(-50%,-50%);
}
#state1{
    font-size: 72px;
    color: #1A70AD;
    position: absolute;
    text-align: center;
    line-height: 70px;
    letter-spacing: 3px;
    opacity: 1;
    left: 50%;
    top:50%;
    transform: translate(-50%,-50%);
}
#name{
    font-size: 16px;
    color:#333333;
    text-align: right;
    padding-right: 10px;
    padding-bottom: 10px;
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    justify-content: center;
    #icon{
        margin-top: 4px;
    }
}
.backlog-list{
    height: 702px;
    width: 790px;
    background-color: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.my-backlog{
    color:#1A70AD;
    font-size:18px;
    span{
        color:#36A46E;
        font-size: 30px;
    }
}
</style>